<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <title>月度意见</title>
    <link rel="stylesheet" href="/addons/jquery-weui-build/css/weui.min.css">
    <link rel="stylesheet" href="/addons/jquery-weui-build/css/jquery-weui.css">
    <link rel="stylesheet" href="/css/system/main.css?v=2018050202">
    @include('sysadmin.head')
</head>
<body ontouchstart>
<div class="full-assess">
    <div class="header-top">
        <h3><img src="../../images/system/mon-mes.png">月度意见</h3>
    </div>
    <div class="ul-content">
        <div class="open-list">
            <div class="inside-con" style="display: block;">
                <input type="hidden" name="_token" value="{{csrf_token()}}">
                <h3 class="inside-title">
                    <select class="" name="tuid">
                        @foreach($user as $u)
                            <option value="{{$u->id}}">{{$u->name}}</option>
                        @endforeach
                    </select>
                </h3>
                <div class="row-ul" style="display: block;">
                    @foreach($ceping as $c)
                        <ul class="kh_op{{$c->id}}">
                            <li>{{$c->varname}}</li>
                            @foreach(unserialize($c->value) as $k=>$v)
                                <li ><a  href="javascript:void(0)" data-v="{{$v}}">{{$k}}</a></li>
                            @endforeach
                        </ul>
                    @endforeach
                        <button class="kh_sub">提交</button>
                   {{-- <ul>
                        <li>主动性</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <ul>
                        <li>学习能力</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <ul>
                        <li>合作精神</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <ul>
                        <li>敬业精神</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <ul>
                        <li>技能</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <button>提交</button>--}}
                </div>
            </div>
        </div>
        {{--<div class="open-list">
            <h3 class="list-title">开发组<span class="icon-dirction"></span></h3>
            <div class="inside-con">
                <h3 class="inside-title">宁静<span class="icon-dirction"></span></h3>
                <div class="row-ul">
                    <ul>
                        <li>主动性</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <ul>
                        <li>学习能力</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <ul>
                        <li>合作精神</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <ul>
                        <li>敬业精神</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <ul>
                        <li>技能</li>
                        <li><a href="javascript:void(0)">很差</a></li>
                        <li><a href="javascript:void(0)">较差</a></li>
                        <li><a href="javascript:void(0)">正常</a></li>
                        <li><a href="javascript:void(0)">较好</a></li>
                        <li><a href="javascript:void(0)">很好</a></li>
                    </ul>
                    <button>提交</button>
                </div>
            </div>
        </div>--}}
    </div>
</div>
@include('sysadmin.admin-caidan')
<script src="/js/jquery-2.1.4.min.js"></script>
<script src="/addons/jquery-weui-build/js/fastclick.js"></script>
<script>
    $(function() {
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        FastClick.attach(document.body);
    });
</script>
<script src="/addons/jquery-weui-build/js/jquery-weui.min.js"></script>
<script>
    var cur=[];
    var choice= Array();
    @foreach($ids as $d)
      cur.push({{$d}});
    @endforeach
    //alert(cur);
    $('.kh_sub').click(function () {
        $(cur).each(function(i,n){
            var ddd = $('.kh_op'+n+' li a.active').attr('data-v');
            choice[n] = ddd;
        });
        var toke = $('input[name=_token]').val();
        var uid = $('select[name=tuid]').val();
        $.ajax({
            'url': '/user/performance/month?_token='+toke+'&uid='+uid,
            'type': 'POST',
            'data': {'ch':JSON.stringify(choice)},
            error: function (request) {
                $.toast('网络错误',"text");
            },
            success: function (data) {
                if (data.status == 'success') {
                    $.toast("操作成功");
                    window.location.href='/user/performance/index';
                } else {
                    $.toast(data.msg,"text");
                }
            },
        });
    });

    $('.find-link').click(function () {
        $('.show-hidden').toggle();
    });
    $('.admin-item').click(function(){
        $('.front-show-hidden').toggle();
    });
    $('.full-assess .ul-content .list-title').each(function () {
        $(this).click(function () {
            $(this).find('span').toggleClass('open');
            $(this).siblings('.inside-con').toggle();
        })
    })
    $('.full-assess .inside-con .inside-titl').each(function () {
        $(this).click(function () {
            $(this).find('span').toggleClass('open');
            $(this).next('.row-ul').toggle();
        })
    })
    $('.full-assess .inside-con .row-ul li a').each(function () {
        $(this).click(function () {
            $(this).addClass('active');
            $(this).parent().siblings().find('a').removeClass('active');
        })
    })
</script>
</body>
</html>